package com.chilly.inter;

/**
 * Created by Chilly Cui on 2020/11/19.
 */
public class Main {
    public static void main(String[] args) {
        Formula formula = new Formula() {
            @Override
            public double calc(int a) {
                return (a * 100);
            }
        };

        System.out.println(formula.calc(100));
        System.out.println(formula.sqrt(100));
    }
}
